import request from "@/utils/request";

// 查询号志数据日志列表
export function listTWorkRecordLog(query) {
  return request({
    url: "/system/TWorkRecordLog/list",
    method: "get",
    params: query,
  });
}

// 查询号志数据日志详细
export function getTWorkRecordLog(id) {
  return request({
    url: "/system/TWorkRecordLog/" + id,
    method: "get",
  });
}

// 新增号志数据日志
export function addTWorkRecordLog(data) {
  return request({
    url: "/system/TWorkRecordLog",
    method: "post",
    data: data,
  });
}

// 修改号志数据日志
export function updateTWorkRecordLog(data) {
  return request({
    url: "/system/TWorkRecordLog",
    method: "put",
    data: data,
  });
}

// 删除号志数据日志
export function delTWorkRecordLog(id) {
  return request({
    url: "/system/TWorkRecordLog/" + id,
    method: "delete",
  });
}

// 清空日志
export function cleanOperlog() {
  return request({
    url: "/system/TWorkRecordLog/cleanLog",
    method: "delete",
  });
}
